FROM openjdk:8u312-jdk-slim-buster8
MAINTAINER scholar 55435818@qq.com
EXPOSE 3002 5005
WORKDIR /ROOT
ADD ruoyi-admin/target/ruoyi-admin.jar /ROOT/app.jar
# 加快随机数生成速度，有助于提高应用的启动速度，启动容器内jar包的命令
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/ROOT/app.jar"]
# docker run -d -p 3002:3002 -p 5005:5005  -e JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005" --name ruoyi-admin -v /usr/local/uploads:/usr/local/uploads ruoyi-admin:latest
# 远程调试： -e JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005"